/**
 * @author zhangshuai
 * @version V1.0
 * @Project Java2_26
 * @Package PACKAGE_NAME
 * @Description:
 * @Date 2025/5/19 10:55
 */

public class Seat {
    //方法包含占用（occpuy）和回收（recycle）
    private Integer passenger = 10;
    public void occpuy(){
        passenger ++;
        System.out.println("占用" + passenger);
    }
    public void recycle(){
        passenger --;
        System.out.println("回收" + passenger);
    }
}